package com.zzty.zzlp.serviceimpl;

import com.zzty.zzlp.dao.ClassGroupMapper;
import com.zzty.zzlp.entity.ClassGroup;
import com.zzty.zzlp.entity.User;
import com.zzty.zzlp.service.ClassGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassGroupServiceImpl implements ClassGroupService {


    @Autowired
     ClassGroupMapper classGroupMapper;


    @Override
    public List<User> selectall(String clazzId) {
        return classGroupMapper.selectall(clazzId);
    }


    @Override
    public Integer insertGroup(ClassGroup group) {
        return classGroupMapper.insertGroup(group);
    }


    @Override
    public Integer count(Integer clazzId) {
        return classGroupMapper.count(clazzId);
    }


    @Override
    public Integer delete(Integer clazzId) {
        return classGroupMapper.delete(clazzId);
    }
}
